package myProject.gwt.client;

import com.google.gwt.user.client.ui.Composite;

public abstract class AbstractKeyboard extends Composite{

	protected IKeyboardListener listener;
	
	public void setKeyboardListener(IKeyboardListener listener){
		this.listener = listener;
	}
	
	protected void raiseKeyPressed(char key){
		if(listener != null) listener.keyPressed(key);
	}
	
}
